@extends('Shop.index')

@section('content')
<!--aside nav-->
<!--aside nav-->
<section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content">
      <div class="page_title">
       <h2 class="fl">商品列表示例</h2>
       <a href="/goods/add" class="fr top_rt_btn add_icon">添加商品</a>
      </div>  
        <div class="mws-form-message error hide">
            
        </div>
        <div class="mws-form-message success hide">

        </div>
      <table class="table">
       <tbody>
       @if (count($errors) > 0)
          <div class="mws-form-message error">
                <ul>
                  @foreach ($errors->all() as $error)
                      <li>{{ $error }}</li>
                  @endforeach
                    
                </ul>
            </div>
      @endif
       <tr>
        <th>ID</th>
        <th>金额</th>
        <th>过期时间</th>
        <th>消费金额满</th>
        <th>操作</th>
       </tr>
       @foreach($coupons as $k => $v)
       <tr>
        <td>{{$v->id}}</td>
        <td>{{$v->money}}</td>
        <td>{{date('Y-m-d H:i:s',$v->overdue)}}</td>
        <td>{{$v->condi}}</td>
        <td class="center">
         <a href="/coupon/delete/{{$v->id}}" title="删除" class="link_icon">d</a>
        </td>
       </tr>
       @endforeach
      </tbody></table>
 </div>
</section>
@endsection
@section('js')
<script src="/shopadmin/js/ueditor.config.js"></script>
<script src="/shopadmin/js/ueditor.all.min.js"> </script>
<script> 

</script>
@endsection